/**
 * @desc: ota管理
 * @author xiongyi
 * @date 2022/11/18
*/
import request from '@/assets/common/js/utils/request'
/**
* @description 获取数据
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function otaGet(data) {
    return request({
        url: "deviceversion/get",
        method: "get",
        params: data,
    })
}
/**
* @description 获取设备机型
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function otaGetSbjx(data) {
    return request({
        url: "devcietype/getlist",
        method: "post",
        data: data,
    })
}
/**
* @description 获取设备型号
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function otaGetSbxh(data) {
    return request({
        url: "devcietype/getbyname",
        method: "get",
        params: data,
    })
}

/**
* @description 更新数据
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function otaUpdate(data) {
    return request({
        url: "deviceversion/update/"+data.id+"",
        method: "put",
        data: data,
    })
}

/**
* @description 创建数据
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function otaCreate(data) {
    return request({
        url: "deviceversion/create",
        method: "post",
        data: data,
    })
}
/**
* @description 删除ota
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function otaDelete(data) {
    return request({
        url: 'deviceversion/delete',
        method: 'DELETE',
        params: data,
    });
}

